package org.aeon.colorfulplanebattle.view.panel;

import org.aeon.colorfulplanebattle.view.GameState;

import javax.swing.*;
import java.awt.*;

/**
 * @author: MissingAeon
 * @date: 2024/1/8 19:06
 * @description:
 */
public class MainPanel extends JRootPane {
    private final GameState gameState;

    public MainPanel(GameState gameState) {
        this.gameState = gameState;
        Container container = this.getContentPane();
        container.setLayout(new BorderLayout());
        container.add(new ContentPanel(this.gameState), BorderLayout.CENTER);
        container.add(new BottomPanel(this.gameState), BorderLayout.SOUTH);
    }


}
